package com.dtkavin.threads;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by john on 10/2/16.
 */
public class TimerDemo {

    private Timer timer=null;
    public TimerDemo(){
        timer = new Timer();
    }

    public void schedule(TimerTask task){
        timer.schedule(task,3000,1000);
    }
}
